Patch from Gary V. Vaughan
svn path=/trunk/; revision=399
+2009-03-25 Martin Nordholts <martinn@svn.gnome.org>
+
+ * babl/babl-fish.c: Patch from Gary V. Vaughan. Some vendor
+ compilers can't compile non-constant elements of compound struct
+ initializers
+
2009-03-25 Martin Nordholts <martinn@svn.gnome.org>
Patch from Gary V. Vaughan. Some vendor C compilers choke on C++
(Babl *) NULL,
(Babl *) NULL,
0,
- source_format,
- destination_format};
+ (Babl *) NULL,
+ (Babl *) NULL};
+
+ /* some vendor compilers can't compile non-constant elements of
+ * compound struct initializers
+ */
+ ffish.source = source_format;
+ ffish.destination = destination_format;
id_htable = (babl_fish_db ())->id_hash;
hashval = babl_hash_by_int (id_htable, babl_fish_get_id (source_format, destination_format));